package com.boge.utils.aspects;

import org.apache.log4j.Logger;
import org.aspectj.lang.JoinPoint;

public class ExceptionLogAspect {
	
	public void afterThrowing(JoinPoint jPoint, Exception e) {
		Logger logger = Logger.getLogger(jPoint.getTarget().getClass());
		logger.error(e.getMessage(), e);
	}
	
}
